package com.rui.patterns.proxy.cglib_proxy;

/**
 * @author : [锐神NO.3]
 * @version : [v1.0]
 * @className : Client
 * @createTime : [2022/2/21 16:35]
 * @description : [描述该类的功能]
 */

public class Client {
    public static void main(String[] args) {
        //创建代理工厂对象
        ProxyFactory factory = new ProxyFactory();

        //获取代理对象
        TrainStation preoxyObject = factory.getPreoxyObject();

        //调用代理对象中的sell方法卖票
        preoxyObject.sell();
    }
}
